Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Fri, 25 Feb 2022 04:48:27 +0000 (04:48 +0000)
committerRaspbian forward porter <root@raspbian.org>
Fri, 25 Feb 2022 04:48:27 +0000 (04:48 +0000)
commitc13685f6c37254261ef9c5d4f1a131875bfbbec8
tree18999d0e7d85bf351e293276fde53c4826c1a937
parentf50c5ea0ffa83cc33e9347d1e93cff4e3861b1d6
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas